package com.example.wanxiang.repository;

import com.example.wanxiang.entity.ArticleAndCom;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticleAndComRepository extends MongoRepository<ArticleAndCom, String> {
    List<ArticleAndCom> findByArticleId(String articleId);
}
